package com.zhang.mongodb.common.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2024-04-02 16:04
 **/
@Data
@Document(collection = "users")
public class UserDO {
    @Id
    private String id;
    private Long userId;
    private String username;
    private String email;
    private String description;
    private Date createTime;
    private List<UserDO> friendList;

}
